package com.gouzaofangfa;

public class StudentScanner {
    private String name;
    private String classNum;
    private int age;
    public StudentScanner() {
    }
    public StudentScanner(String name, int age, String classNum){
        this.name = name;
        this.age = age;
        this.classNum = classNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassNum() {
        return classNum;
    }

    public void setClassNum(String classNum) {
        this.classNum = classNum;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "StudentScanner{" +
                "name='" + name + '\'' +
                ", classNum='" + classNum + '\'' +
                ", age=" + age +
                '}';
    }
}
